using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Effect22-外部调用函数无参数", menuName = "Skill/Effect/Effect22-外部调用函数无参数", order = 22)]
public class Effect22 : EffectBase
{
    public EffectBase effect;
    public override void Apply(Pair pair, GameEvent e, List<Chess> targets)
    {
        if(targets == null || targets.Count == 0) return;

        foreach (var target in targets)
        {
            effect.ExternallyFunctions();
        }
    }
}